﻿using MSWind.Connection;
using System.Windows.Forms;
using System.Text;
using System.Threading;
using System;

namespace MSWind.Scripts
{
    class HandleSheepExploit
    {
        public HandleSheepExploit(Client client)
        {
            PacketWriter chat = new PacketWriter();
            Random rnd = new Random(DateTime.Now.Millisecond);

            int rndValue = rnd.Next();

            chat.WriteShort(0x2F);
            chat.WriteInt(rndValue);
            chat.WriteMapleString("lols");
            chat.WriteByte(0);
            client.SendPacket(chat);


            /*PacketWriter perion = new PacketWriter();
            perion.WriteShort((short)PacketOpcodes.s_shop);
            perion.WriteInt(1024);
            for (int i = 0; i <= 6; i++)
            {
                client.SendPacket(perion);
            }
            perion.Dispose();*/

            /*PacketWriter tele = new PacketWriter();
            tele.WriteShort((short)PacketOpcodes.s_owl_teleport);
            tele.WriteInt(338835); // shop id
            tele.WriteInt(910040003); // map id   
            client.SendPacket(tele);
            Thread.Sleep(10);
            tele.Dispose();

            PacketWriter chat = new PacketWriter();
            chat.WriteShort((short)PacketOpcodes.s_npc_chat);
            chat.WriteInt(24848);
            chat.WriteInt(10158151);
            client.SendPacket(chat);
            Thread.Sleep(50);
            chat.Dispose();*/
        }
    }
}
